package edu.zut.service.impl;

import edu.zut.dao.UserDao;
import edu.zut.dao.impl.UserDaoImpl;
import edu.zut.service.UserService;

public class UserServiceImpl implements UserService {

    private UserDao userDao = new UserDaoImpl();
    /**
     * 登录的业务操作
     * @param name
     * @param psw
     * @return
     */
    @Override
    public boolean userLogin(String name, String psw) {
        //密码的加密、权限的认证......

        //调用数据层查询认证数据
        boolean flag = userDao.userQueryByNameAndPsw(name, psw);
        return flag;
    }
}
